home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5824 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  829 b 

  1. Path: news.dfci.harvard.edu!gotd
  2. From: gotd@jimmy.harvard.edu (Godfrey Degamo)
  3. Newsgroups: comp.lang.c
  4. Subject: printing pid_t...
  5. Date: 20 Feb 1996 17:08:31 GMT
  6. Organization: Dana-Farber Cancer Institute
  7. Message-ID: <4gcv6f$6jf@cisunix1.dfci.harvard.edu>
  8. NNTP-Posting-Host: crunch.dfci.harvard.edu
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Hello.  Sorry to bother you with this question.  I don't know
  12. if this belongs in comp.unix.programmers or here.
  13.  
  14. Anyways, I want to read and write pid_t to a text file.  The problem
  15. is how is pid_t type defined?  As an int, long, unsigned int or
  16. unsigned long.  (I think that's all the types that pid_t can be...)
  17. Can I be safe to assume unsigned long and use %lu for printing and
  18. scanning?
  19.  
  20. Sorry again for the silly question!
  21.  
  22. Thanks for your time.
  23.  
  24. -Godfrey Degamo,
  25.  gotd@jimmy.harvard.edu
  26.  
  27.